home *** CD-ROM | disk | FTP | other *** search
- /*
- File: SegLoad.h
-
- Copyright: © 1984-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Version: Universal Interfaces 2.0a3 ETO #16, MPW prerelease. Friday, November 11, 1994.
-
- Bugs?: If you find a problem with this file, send the file and version
- information (from above) and the problem description to:
-
- Internet: apple.bugs@applelink.apple.com
- AppleLink: APPLE.BUGS
-
- */
-
- #ifndef __SEGLOAD__
- #define __SEGLOAD__
-
-
- #ifndef __TYPES__
- #include <Types.h>
- #endif
- /* #include <ConditionalMacros.h> */
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #if GENERATINGPOWERPC
- #pragma options align=mac68k
- #endif
-
- #ifdef __CFM68K__
- #pragma lib_export on
- #endif
-
-
- enum {
- appOpen = 0, /*Open the Document (s)*/
- appPrint = 1 /*Print the Document (s)*/
- };
-
- struct AppFile {
- short vRefNum;
- OSType fType;
- short versNum; /*versNum in high byte*/
- Str255 fName;
- };
- typedef struct AppFile AppFile;
-
- /*
- Because PowerPC applications don’t have segments,
- UnloadSeg is unsupported for PowerPC.
- */
- #if GENERATING68K
- extern pascal void UnloadSeg(void *routineAddr)
- ONEWORDINLINE(0xA9F1);
- #else
- #define UnloadSeg(x)
- #endif
- #if !GENERATINGCFM
- extern pascal void CountAppFiles(short *message, short *count);
- extern pascal void GetAppFiles(short index, AppFile *theFile);
- extern pascal void ClrAppFiles(short index);
- extern pascal void GetAppParms(Str255 apName, short *apRefNum, Handle *apParam)
- ONEWORDINLINE(0xA9F5);
- #if CGLUESUPPORTED
- extern void getappparms(char *apName, short *apRefNum, Handle *apParam);
- #endif
- #endif
- extern pascal void ExitToShell(void)
- ONEWORDINLINE(0xA9F4);
-
- #ifdef __CFM68K__
- #pragma lib_export off
- #endif
-
- #if GENERATINGPOWERPC
- #pragma options align=reset
- #endif
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif /* __SEGLOAD__ */
-